package com.action.ui.activity;

import android.support.v4.app.Fragment;
import android.widget.FrameLayout;

import com.action.childbase.ChildBaseActivity;
import com.base.app_core.service.pressenter.NullPressenter;
import com.xinglai.yun.R;

import butterknife.BindView;

public abstract class BaseFragementActivity extends ChildBaseActivity<NullPressenter> {
	@BindView(R.id.container)
	FrameLayout mcontainer;
	@Override
	protected int getLayoutId() {
		return R.layout.activity_base_fragement;
	}
	abstract protected Fragment getMyFragement();
	
	@Override
	protected void initView() {
		super.initView();
		getSupportFragmentManager().beginTransaction().add(R.id.container,getMyFragement(),"myfragment").commit();
	}
}
